package com.cloudlead.plugin.security.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import java.lang.Boolean;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EScGroupHasPrivilege is a Querydsl bean type
 */
@Label("组对应的权限")
public class EScGroupHasPrivilege extends AbstractIdEntity<String> {

    private static final long serialVersionUID =1743552642493L;    
    @NotNull(groups={UpdateCheck.class})
    @Size(max=24)
    @Label("编号")
    private String id;

    @Label("允许或禁止")
    private Boolean isPermission;

    @NotNull
    @Size(max=24)
    @Label("所属组")
    private String scGroupId;

    @NotNull
    @Size(max=24)
    @Label("所属权限")
    private String scPrivilegeId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getIsPermission() {
        return isPermission;
    }

    public void setIsPermission(Boolean isPermission) {
        this.isPermission = isPermission;
    }

    public String getScGroupId() {
        return scGroupId;
    }

    public void setScGroupId(String scGroupId) {
        this.scGroupId = scGroupId;
    }

    public String getScPrivilegeId() {
        return scPrivilegeId;
    }

    public void setScPrivilegeId(String scPrivilegeId) {
        this.scPrivilegeId = scPrivilegeId;
    }

    public String toString() {
         return String.format("EScGroupHasPrivilege { id : %s,isPermission : %s,scGroupId : %s,scPrivilegeId : %s }",id,isPermission,scGroupId,scPrivilegeId);
    }

}

